package net.wanho.service;

import com.baomidou.mybatisplus.extension.service.IService;
import net.wanho.dto.RoleDTO;
import net.wanho.dto.RoleExportDTO;
import net.wanho.po.Role;
import net.wanho.vo.PageInfo;

import java.util.List;

/**
 * @author 32033
 * @description 针对表【role(角色表)】的数据库操作Service
 * @createDate 2025-01-11 17:01:23
 */
public interface RoleService extends IService<Role> {

    List<Role> getUserRoleList(Integer id);

    PageInfo<Role> getRolePageList(Integer pageNum, Integer pageSize, RoleDTO role);

    //    List<Role> exportTable(int pageNum, int pageSize, Role role);
    List<Role> exportTable(RoleExportDTO roleExportDTO);


    void addRole(Role role);


    Role selectRoleById(Integer id);
}
